package com.bkhech.picocli;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Arrays;
import java.util.stream.Collectors;

/**
 * {@literal https://www.51c51.com/danpianji/xinxi/84/842995.html}
 */
@SpringBootApplication
public class PicocliExampleApplication {


    public static void main(String[] args) {
        final ApplicationContext context = new SpringApplicationBuilder(PicocliExampleApplication.class)
                .bannerMode(Banner.Mode.OFF)
                .web(WebApplicationType.NONE)
                .logStartupInfo(false)
                .run(args);
        SpringApplication.exit(context);
    }

}
